package com.woniu.command.handler;

import com.woniu.adapter.RepairAdapter;
import com.woniu.outlet.po.RepairAcceptance;
import com.woniu.outlet.po.RepairApplication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RepairAppCommandHandler {
    @Autowired
    private RepairAdapter repairAdapter;

    public void addRepairApplication(RepairApplication repairApplication){
        repairAdapter.addRepairApplication(repairApplication);
    }


    public void product(Integer id){
        repairAdapter.product(id);
    }

    public void check(RepairAcceptance repairAcceptance){
        repairAdapter.check(repairAcceptance);
    }

    public void producted (Integer id) {
        repairAdapter.producted(id);
    }
}
